using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Collections;
public class Loops
{
	public static void Main(string[] args)
	{
		while (i < 10) 
		  i++;

		for (i = 2; i <= 10; i += 2) 
		  Console.WriteLine(i);

		do 
		  i++; 
		while (i < 10);

		/* REMAINING
		for (int i : numArray)  // foreach construct  
		  sum += i;
		*/

		// for loop can be used to iterate through any Collection
		ArrayList<object> list = new ArrayList<object>();
		list.Add(10);    // boxing converts to instance of Integer
		list.Add("Bisons");
		list.Add(2.3);    // boxing converts to instance of Double

		/* REMAINING
		for (object o : list)
		  Console.WriteLine(o);
		*/
	}
}
